package com.sk.skplanet.commute.actions;

import android.database.Cursor;

import com.sk.skplanet.commute.daofactory.LocalDaoFactory;
import com.sk.skplanet.commute.vo.Data;

public class SQLiteTask {
	public SQLiteTask() {
		new LocalDaoFactory();
	}
	
	public void updateAuthKey(String AuthKey) {
		LocalDaoFactory.updateAuthKey(AuthKey);
	}
	
	public String getAuthKey() {
		Cursor cursor = LocalDaoFactory.selectIDQuery("authKey", "config");
		cursor.moveToFirst();
		Data.AUTH_KEY = cursor.getString(1);
		
		return Data.AUTH_KEY;
	}
}
